From: Florian Müllner Date: Thu, 25 Sep 2014 19:26:07 +0000 (+0200) Subject: windowMenu: Only disable "Always on Top" for fully maximized X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2072 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e82d6edc2fb6de914aaa2949d35cdf7130c3130;p=gnome-shell.git windowMenu: Only disable "Always on Top" for fully maximized Since (mutter) commit 49400657caae27 we disable the "Always on Top" action for maximized windows, however when commit e7af257814b1 moved the window menu into the shell, this behavior was accidentally extended to partially maximized (including tiled) windows. As it can be desirable in this case to keep the window visible while interacting with a different one, restore the previous behavior. https://bugzilla.gnome.org/show_bug.cgi?id=737382 --- diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js index cec044e00..3d378fad7 100644 --- a/js/ui/windowMenu.js +++ b/js/ui/windowMenu.js @@ -75,7 +75,7 @@ const WindowMenu = new Lang.Class({ })); if (window.is_above()) item.setOrnament(PopupMenu.Ornament.DOT); - if (window.get_maximized() || + if (window.get_maximized() == Meta.MaximizeFlags.BOTH || type == Meta.WindowType.DOCK || type == Meta.WindowType.DESKTOP || type == Meta.WindowType.SPLASHSCREEN)